package com.briup.jz.service;

import com.briup.jz.bean.Privilege;
import com.briup.jz.bean.extend.PrivilegeExtend;
import com.briup.jz.utils.CustomerException;

import java.util.List;

/**
 * @program: jz
 * @description: 权限业务接口
 * @author: catmilko
 * @create: 2020/6/12 15:55
 **/

public interface IPrivilegeService {
    List<Privilege> findAll();

    Privilege findById(long id);

    void saveOrUpdate(Privilege privilege) throws CustomerException;

    void deleteById(long id) throws CustomerException;

    List<PrivilegeExtend> findAllWithChild();
}
